﻿<%@ Page Title="PeDALS public search demonstration" Language="C#" MasterPageFile="~/MasterPages/MasterPageSrch.master" AutoEventWireup="true" Inherits="Browse_Item" Codebehind="Item.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
<h2><asp:Label ID="lblError" runat="server" Visible="false"></asp:Label></h2>
<b><h3><asp:Label ID="lblItem" runat="server" Text="Item Detail" Visible="True"></asp:Label></h3></b>
<div>
<%--Download--%>
<asp:Button ID="btnDownLoad" runat="server" Text="Download item" onclick="btnDownload_Click" />
<br /><br />
<%--End DownLoad--%>
<b><asp:Label ID="lblItemTitle" runat="server" Text="Title<br />" Visible="false"></asp:Label></b>

<asp:Literal ID="ltItemTitle" runat="server" Visible="false" Text='<%# Eval("ItemTitle")%>'></asp:Literal>
<br />

<%--Item Variant Title Repeater--%>
<b><asp:Label ID="lblItemVarTitle" runat="server" Text="Variant Title<br />" Visible="false"></asp:Label></b>
<asp:Repeater ID="rptItemVarTitle" runat="server" Visible="false">
    <ItemTemplate>
            <asp:Literal ID="ltItemVarTitle" runat="server"  Text='<%# Eval("ItemVariantTitle1")%><br />'></asp:Literal>
    </ItemTemplate>
</asp:Repeater>
<%--End Item Variant Title Repeater--%>
<br />
<b><asp:Label ID="lblItemDisplayTitle" runat="server" Text="Display Title<br />" Visible="false"></asp:Label></b>

<asp:Literal ID="ltItemDisplayTitle" runat="server" Visible="false" Text='<%# Eval("ItemDisplayTitle")%><br />'></asp:Literal>

<b><asp:Label ID="lblProvName" runat="server" Text="Provenance Name<br />" Visible="false"></asp:Label></b>
<asp:Literal ID="ltProvName" runat="server" Visible="false" Text='<%# Eval("ProvenanceName")%>'></asp:Literal>

<b><asp:Label ID="lblSeriesTitle" runat="server" Visible="false" Text="<br /><br />Series Title<br />" ></asp:Label></b>

<asp:Literal ID="ltSeriesTitle" runat="server" Visible="false" Text='<%# Eval("SeriesTitle")%>'></asp:Literal>


<b><asp:Label ID="lblFilingUnit" runat="server" Visible="false" Text="<br /><br />Filing Unit<br />"></asp:Label></b>

<asp:Literal ID="ltFilingUnit" runat="server" Visible="false" Text='<%# Eval("FilingUnitName")%>'></asp:Literal>

<%--Item Date--%>
<b><asp:Label ID="lblItemDate" runat="server" Text="<br /><br />Dates<br />" Visible="false"></asp:Label></b>

    <asp:Repeater ID="rptItemDate" runat="server" Visible="false">
    <ItemTemplate>
                    <asp:Literal ID="ltlItemDateQualifier" runat="server" Text='<%# Eval("QualifierType")%>'></asp:Literal>:
                    <asp:Literal ID="ltlItemDates" runat="server" Text='<%# Eval("ItemDateValue")%>'></asp:Literal>
                    <br />
                    </ItemTemplate>
    </asp:Repeater>
<%--End Item Date--%>
<br />
<b><asp:Label ID="lblItemExtDesc" runat="server" Text="Extent<br />" Visible="false"></asp:Label></b>
<asp:Literal ID="ltItemExtDesc" runat="server" Visible="false" Text='<%# Eval("ItemExtentDescription")%>'></asp:Literal>

<b><asp:Label ID="lblItemDesc" runat="server" Text="<br /><br />Description<br />" Visible="false"></asp:Label></b>

<asp:Literal ID="ltItemDesc" runat="server" Visible="false" Text='<%# Eval("ItemDescription")%>'></asp:Literal>

<b><asp:Label ID="lblItemSample" runat="server" Text="<br /><br />Sample<br />" Visible="false"></asp:Label></b>

<asp:Literal ID="ltItemSample" runat="server" Visible="false" Text='<%# Eval("ItemSample")%>'></asp:Literal>

<b><asp:Label ID="lblItemGeneralNote" runat="server" Text="<br /><br />General Note<br />" Visible="false"></asp:Label></b>

<asp:Literal ID="ltItemGeneralNote" runat="server" Visible="false" Text='<%# Eval("ItemGeneralNote")%>'></asp:Literal>

<%--Item Party Repeater--%>
<b><asp:Label ID="lblItemParty" runat="server" Text="<br /><br />Parties to the record<br />" Visible="false"></asp:Label></b>

    <asp:Repeater ID="rptItemParty" runat="server" Visible="false">
    <ItemTemplate>
                    <asp:Literal ID="Literal1" runat="server"  Text='<%# Eval("QualifierType")%>'></asp:Literal>: 
                    <asp:Literal ID="ltItemParty" runat="server"  Text='<%# Eval("ItemPartyValue")%>'></asp:Literal>
                    <br />
                    </ItemTemplate>
    </asp:Repeater>
<%--End Item Party Repeater--%>

<%--Item Subjects Repeater--%>
<b><asp:Label ID="lblItemSubject" runat="server" Text="Subjects<br />" Visible="false"></asp:Label></b>

    <asp:Repeater ID="rptItemSubject" runat="server" Visible="false">
    <ItemTemplate>
                    <asp:Literal ID="ltQualifierType" runat="server"  Text='<%# Eval("QualifierType")%>'></asp:Literal>: 
                    <asp:Literal ID="ltSubjectName" runat="server"  Text='<%# Eval("SubjectName")%>'></asp:Literal>
                    <br />
                    </ItemTemplate>
    </asp:Repeater>
<%--End Item Subjects Repeater--%>

<%--Item Geo Location Repeater--%>
<b><asp:Label ID="lblItemGeoLoc" runat="server" Text="Geographic Location<br />" Visible="false"></asp:Label></b>

    <asp:Repeater ID="rptItemGeoLoc" runat="server" Visible="false">
    <ItemTemplate>
                    <asp:Literal ID="ltItemGeoLoc" runat="server"  Text='<%# Eval("GeoLocationValue")%>'></asp:Literal>
                    <br />
                    </ItemTemplate>
    </asp:Repeater>
<%--End Item GeoLocation Repeater--%>

<%--Item Keyword Repeater--%>
<b><asp:Label ID="lblKeyword" runat="server" Text="KeyWords<br />" Visible="false"></asp:Label></b>

    <asp:Repeater ID="rptKeyword" runat="server" Visible="false">
    <ItemTemplate> 
                    <asp:Literal ID="ltItemParty" runat="server"  Text='<%# Eval("Keyword")%>'></asp:Literal>
                    <br />
                    </ItemTemplate>
    </asp:Repeater>
<%--End Item Keyword Repeater--%>

<b><asp:Label ID="lblItemOrigId" runat="server" Text="Originator<br />" Visible="false"></asp:Label></b>

<asp:Literal ID="ltItemOrigId" runat="server" Visible="false" Text='<%# Eval("ItemOriginatorIdentifier")%>'></asp:Literal>

<%--Related Items Repeater--%>
<b><asp:Label ID="lblRelatedItems" runat="server" Text="<br /><br />Related Items<br />" Visible="false"></asp:Label></b>
    <asp:Repeater ID="rptRelatedItems" runat="server" Visible="false">
    <ItemTemplate> 
                    <asp:Literal ID="ltRelatedItems" runat="server"  Text='<%# Eval("RelatedItemTypeName")%>'></asp:Literal>
                    <br />
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "ItemId", "~/Browse/Item.aspx?query={0}")%>'> <%# DataBinder.Eval(Container.DataItem, "ItemTitle") %></asp:HyperLink>
                    </ItemTemplate>
    </asp:Repeater>
<%--End Related Items Repeater--%>
</div>
</ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

